package com.riant.dayo2.demo5;

/**
 * @Classname User
 * @Description TODO
 * @Date 2021/2/27 23:34
 * @Created by 张斌
 */
public class User {
    private String name;
    private int age;
    private static int department;
    public User() {
    }

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static void setDepartment(int department) {
        User.department = department;
        System.out.println("departement："+department);
    }
}
